import { HTTP } from "../utils/http.js"

class MessageModel extends HTTP {

  publish(params,_callback) {
    this.request({
      url: "/usr/releaseUsrMoments",
      data:params,
      method:"POST",
      success: function (data) {
        _callback(data);
      }
    })
  }

  getUserTwitter( _callback) {
    this.request({
      url: "/usr/getMyUsrMomentsePage",
      success: function (data) {
        _callback(data);
      }
    })
  }

  prise(params,_callback) {
    this.request({
      url: "/usr/bepraised",
      method: "POST",
      data:params,
      success: function (data) {
        _callback(data);
      }
    })
  }

  unprise(params, _callback) {
    this.request({
      url: "/usr/deleteBepraised",
      method:"POST",
      data: params,
      success: function (data) {
        _callback(data);
      }
    })
  }
}

export { MessageModel }